﻿using Caliburn.Micro;
using SD.Infrastructure.WPF.Caliburn.Aspects;
using System;
using System.Collections.ObjectModel;

namespace SlamDunk.MES.Presentation.Models.NotifyModels
{
    /// <summary>
    /// 作业计划人员使用工时
    /// </summary>
    public class PersonSummaryNm : PropertyChangedBase
    {
        #region 人员Id —— Guid PersonId
        /// <summary>
        /// 人员Id
        /// </summary>
        [DependencyProperty]
        public Guid PersonId { get; set; }
        #endregion

        #region 人员编号 —— string PersonNo
        /// <summary>
        /// 人员编号
        /// </summary>
        [DependencyProperty]
        public string PersonNo { get; set; }
        #endregion

        #region 人员姓名 —— string PersonName
        /// <summary>
        /// 人员姓名
        /// </summary>
        [DependencyProperty]
        public string PersonName { get; set; }
        #endregion

        #region 工时 —— decimal Manhour
        /// <summary>
        /// 工时
        /// </summary>
        [DependencyProperty]
        public decimal Manhour { get; set; }
        #endregion

        #region 开始时间 — DateTime PlanStartTime
        /// <summary>
        /// 开始时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanStartTime { get; set; }
        #endregion

        #region 结束时间 — DateTime PlanEndTime
        /// <summary>
        /// 结束时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanEndTime { get; set; }
        #endregion

        #region 作业计划Id —— Guid ExecutionPlanId
        /// <summary>
        /// 作业计划Id
        /// </summary>
        [DependencyProperty]
        public Guid ExecutionPlanId { get; set; }
        #endregion

        #region 作业计划列表 —— ObservableCollection<PersonSummaryDetailtReportInfo> ExecutionPlanList
        /// <summary>
        /// 作业计划列表
        /// </summary>
        [DependencyProperty]
        public ObservableCollection<PersonSummaryDetailNm> ExecutionPlanList { get; set; }
        #endregion

        #region 工厂模型 — string FacilityName
        /// <summary>
        /// 工厂模型
        /// </summary>
        [DependencyProperty]
        public string FacilityName { get; set; }
        #endregion

        #region 工厂模型Id — Guid FacilityId
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DependencyProperty]
        public Guid? FacilityId { get; set; }
        #endregion
    }
}
